package com.company.kotlinlearn.application

import android.app.Application
import androidx.lifecycle.ProcessLifecycleOwner
import com.company.kotlinlearn.lifecyc.MyLifecycleTest

/**
 * @description
 * @author Toosan
 * @time 2022/3/31 0:06
 */
class KotlinApplication: Application() {

    override fun onCreate() {
        super.onCreate()
        // 为整个APP注册生命周期
        ProcessLifecycleOwner.get().lifecycle.addObserver(MyLifecycleTest())
    }

}